package demo9;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
public class Test {

    public static void main(String[] args) throws CloneNotSupportedException {
      Student student1 = new Student("小贺",20);
      Student student2 =(Student) student1.clone();
      System.out.println("修改前:"+ student1.m.money);
      System.out.println("修改前:"+ student2.m.money);
      student2.m.money = 99.9;
      System.out.println("修改后:"+ student1.m.money);
      System.out.println("修改后:"+ student2.m.money);

    }
}
